﻿using System.Web.Mvc;
using Kratos.Framework.ContentManagement.Models;
using Kratos.Framework.Extensions;
using Kratos.Framework.Filters;
using Kratos.Framework.Modules.Core.Services;

namespace Kratos.Framework.Modules.Core.Controllers
{
    /// <summary>
    /// 控制器基类,所有控制器都应该继承与它,但也可以自己定义一个来继承
    /// </summary>
    [HandleError]
    //[KratosSecurity]
    public abstract class KratosController : Controller
    {
        protected UserInfo CurrentUser
        {
            get { return DependencyResolver.Current.GetService<IUserInfoServices>().CurrentUser; }
        }
    }
}
